package com.zhongkun.datahome.service.res.material;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author: lifengsheng
 * @Date: 2025/4/22 11:34
 * @Desc
 */
@Data
public class HouseMaterialRoomVo {
    @ApiModelProperty("空间名称")
    private String room;

    @ApiModelProperty("空间材料清单")
    private List<HouseMaterialSkuVo> itemList;

    public static HouseMaterialRoomVo of(String room, List<HouseMaterialSkuVo> itemList) {
        HouseMaterialRoomVo vo = new HouseMaterialRoomVo();
        vo.setRoom(room);
        vo.setItemList(itemList);
        return vo;
    }
}
